﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Scanner
{

    class FileReader
    {
        public string fileName;

        public void readFile(string filename)
        {
            try
            {
               using (StreamReader sr = new StreamReader(@filename))
                {
                    string line = sr.ReadLine();
                    Console.WriteLine(line);
                }
            }
            catch (Exception)
            {
                Console.WriteLine("Point me to the file!");
                throw;
            }
        }

    }
}
